package foo.dao;

import java.sql.Connection;

public class DaoManager {
	protected Connection connection;
	protected PersonDao personDao;
	
	public DaoManager(Connection aConnection) {
		connection = aConnection;
	}
	
	public PersonDao getPersonDao() {
		if (this.personDao == null) {
			personDao = new PersonDao(this.connection);
		}
		
		return personDao;
	}
	
}
